package com.haiyou.dc.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户管理
 *
 * @author Administrator
 * @date 2020-01-06 10:38:15
 */
@ApiModel(value = "用户管理")
@Data
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;


    private String id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", name = "username")
    private String username;


    @ApiModelProperty(value = "头像", name = "avatar")
    private String avatar;


    @ApiModelProperty(value = "手机号", name = "phone")
    private String phone;


    @ApiModelProperty(value = "path", name = "path")
    private String path;


    @ApiModelProperty(value = "密码", name = "password")
    private String password;


    @ApiModelProperty(value = "姓名", name = "realName")
    private String realName;


    @ApiModelProperty(value = "昵称", name = "nickName")
    private String nickName;

    @ApiModelProperty(value = "性别：1男，2女", name = "sex")
    private String sex;


    @ApiModelProperty(value = "配送中心用户ID", name = "bossUserId")
    private String bossUserId;

    @ApiModelProperty(value = "配送中心用户名", name = "bossUserName")
    private String bossUserName;

    @ApiModelProperty(value = "推荐人编号", name = "recUserId")
    private String recUserId;

    @ApiModelProperty(value = "推荐人姓名", name = "recUserName")
    private String recUserName;

    @ApiModelProperty(value = "省份名称", name = "province")
    private String province;

    @ApiModelProperty(value = "城市名称", name = "city")
    private String city;

    @ApiModelProperty(value = "县区名称", name = "region")
    private String region;

    @ApiModelProperty(value = "详细地址", name = "address")
    private String address;

    @ApiModelProperty(value = "经度", name = "longitude")
    private String longitude;

    @ApiModelProperty(value = "纬度", name = "latitude")
    private String latitude;

    @ApiModelProperty(value = "用户角色：1超级管理员，2普通用户，3配送中心", name = "roleType")
    private String roleType;

    @ApiModelProperty(value = "VIP等级(0-5等级)，0表示普通用户", name = "vipLevel")
    private String vipLevel;

    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @ApiModelProperty(value = "用户积分", name = "integral")
    private Integer integral;

    @ApiModelProperty(value = "1:正常，2:冻结，默认为1", name = "state")
    private String state;

    @ApiModelProperty(value = "小程序二维码", name = "qrcode")
    private String qrcode;

    @ApiModelProperty(value = "openid", name = "openid")
    private String openid;

    @ApiModelProperty(value = "注册时间", name = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

}
